# name_list = ['张三', '李四', '王五', '赵六']
# print(name_list)
# name_list.append('明哥')
# print(name_list)
#
# """对于字符串中的替换"""
# var = "hello and python and hello world"
# print(var)
# var.replace('and','和')   # 不会改变原来的字符串
# print(var)


name_list = ['张三', '李四', '王五', '赵六']
alist = ["唱", "跳", "rap", "篮球"]
# name_list.append(alist)  # 添加
# print(name_list)
# name_list.extend(alist)  # 拓展
# print(name_list)
name_list.insert(2, '123123123')  # 第一个参数是索引  第二个参数是值
print(name_list)

